﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Psm.Util;

namespace Psm.Transport
{
    public interface IClientTransport
    {
        void SendAsync(ByteBuffer payload);
 
        void BeginReceive(ByteBuffer payload, Action<IClientTransport> asyncCallback);
        ByteBuffer EndReceive();
        
        event EventHandler<TransportClosedEventArgs> TransportClosed; 
    }
}
